﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.CarService.Maintains
{
    public interface IMaintainRepository
    {
        /// <summary>
        /// 显示维修记录
        /// </summary>
        /// <param name="name"></param>
        /// <param name="time"></param>
        /// <param name="cardnumber"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageResponse<MaintainDto>> GetShowMaintain(string name, DateTime? time,string cardnumber, int pageindex, int pagesize);
        /// <summary>
        /// 删除维修记录
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteDelMaintain(int id);
        /// <summary>
        /// 批量删除维修记录
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteDelsMaintain(string ids);
        /// <summary>
        /// 编辑修改
        /// </summary>
        /// <param name="maintainDto"></param>
        /// <returns></returns>
        Task<int> PutUpdateMaintain(MaintainDto maintainDto);
        /// <summary>
        /// 添加维修记录
        /// </summary>
        /// <param name="maintainDto"></param>
        /// <returns></returns>
        Task<int> PostAddMaintain(MaintainDto maintainDto);
        /// <summary>
        /// 绑定
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<CarDtos>> GetBind();
    }
}
